3.3.59 \(\int (a+b \sec (c+d x)) (e \sin (c+d x))^m \, dx\) [259]

Optimal. Leaf size=119 \[ \frac {a \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1+m}{2};\frac {3+m}{2};\sin ^2(c+d x)\right ) (e \sin (c+d x))^{1+m}}{d e (1+m) \sqrt {\cos ^2(c+d x)}}+\frac {b \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};\sin ^2(c+d x)\right ) (e \sin (c+d x))^{1+m}}{d e (1+m)} \]

[Out]

b*hypergeom([1, 1/2+1/2*m],[3/2+1/2*m],sin(d*x+c)^2)*(e*sin(d*x+c))^(1+m)/d/e/(1+m)+a*cos(d*x+c)*hypergeom([1/
2, 1/2+1/2*m],[3/2+1/2*m],sin(d*x+c)^2)*(e*sin(d*x+c))^(1+m)/d/e/(1+m)/(cos(d*x+c)^2)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 0.11, antiderivative size = 119, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 5, integrand size = 21, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.238, Rules used = {3957, 2917, 2644, 371, 2722} \begin {gather*} \frac {a \cos (c+d x) (e \sin (c+d x))^{m+1} \, _2F_1\left (\frac {1}{2},\frac {m+1}{2};\frac {m+3}{2};\sin ^2(c+d x)\right )}{d e (m+1) \sqrt {\cos ^2(c+d x)}}+\frac {b (e \sin (c+d x))^{m+1} \, _2F_1\left (1,\frac {m+1}{2};\frac {m+3}{2};\sin ^2(c+d x)\right )}{d e (m+1)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(a + b*Sec[c + d*x])*(e*Sin[c + d*x])^m,x]

[Out]

(a*Cos[c + d*x]*Hypergeometric2F1[1/2, (1 + m)/2, (3 + m)/2, Sin[c + d*x]^2]*(e*Sin[c + d*x])^(1 + m))/(d*e*(1
 + m)*Sqrt[Cos[c + d*x]^2]) + (b*Hypergeometric2F1[1, (1 + m)/2, (3 + m)/2, Sin[c + d*x]^2]*(e*Sin[c + d*x])^(
1 + m))/(d*e*(1 + m))

Rule 371

Int[((c_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^(n_))^(p_), x_Symbol] :> Simp[a^p*((c*x)^(m + 1)/(c*(m + 1)))*Hyperg
eometric2F1[-p, (m + 1)/n, (m + 1)/n + 1, (-b)*(x^n/a)], x] /; FreeQ[{a, b, c, m, n, p}, x] &&  !IGtQ[p, 0] &&
 (ILtQ[p, 0] || GtQ[a, 0])

Rule 2644

Int[cos[(e_.) + (f_.)*(x_)]^(n_.)*((a_.)*sin[(e_.) + (f_.)*(x_)])^(m_.), x_Symbol] :> Dist[1/(a*f), Subst[Int[
x^m*(1 - x^2/a^2)^((n - 1)/2), x], x, a*Sin[e + f*x]], x] /; FreeQ[{a, e, f, m}, x] && IntegerQ[(n - 1)/2] &&
 !(IntegerQ[(m - 1)/2] && LtQ[0, m, n])

Rule 2722

Int[((b_.)*sin[(c_.) + (d_.)*(x_)])^(n_), x_Symbol] :> Simp[Cos[c + d*x]*((b*Sin[c + d*x])^(n + 1)/(b*d*(n + 1
)*Sqrt[Cos[c + d*x]^2]))*Hypergeometric2F1[1/2, (n + 1)/2, (n + 3)/2, Sin[c + d*x]^2], x] /; FreeQ[{b, c, d, n
}, x] &&  !IntegerQ[2*n]

Rule 2917

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_)*((d_.)*sin[(e_.) + (f_.)*(x_)])^(n_.)*((a_) + (b_.)*sin[(e_.) + (f_.)
*(x_)]), x_Symbol] :> Dist[a, Int[(g*Cos[e + f*x])^p*(d*Sin[e + f*x])^n, x], x] + Dist[b/d, Int[(g*Cos[e + f*x
])^p*(d*Sin[e + f*x])^(n + 1), x], x] /; FreeQ[{a, b, d, e, f, g, n, p}, x]

Rule 3957

Int[(cos[(e_.) + (f_.)*(x_)]*(g_.))^(p_.)*(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.), x_Symbol] :> Int[(g*Co
s[e + f*x])^p*((b + a*Sin[e + f*x])^m/Sin[e + f*x]^m), x] /; FreeQ[{a, b, e, f, g, p}, x] && IntegerQ[m]

Rubi steps

\begin {align*} \int (a+b \sec (c+d x)) (e \sin (c+d x))^m \, dx &=-\int (-b-a \cos (c+d x)) \sec (c+d x) (e \sin (c+d x))^m \, dx\\ &=a \int (e \sin (c+d x))^m \, dx+b \int \sec (c+d x) (e \sin (c+d x))^m \, dx\\ &=\frac {a \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1+m}{2};\frac {3+m}{2};\sin ^2(c+d x)\right ) (e \sin (c+d x))^{1+m}}{d e (1+m) \sqrt {\cos ^2(c+d x)}}+\frac {b \text {Subst}\left (\int \frac {x^m}{1-\frac {x^2}{e^2}} \, dx,x,e \sin (c+d x)\right )}{d e}\\ &=\frac {a \cos (c+d x) \, _2F_1\left (\frac {1}{2},\frac {1+m}{2};\frac {3+m}{2};\sin ^2(c+d x)\right ) (e \sin (c+d x))^{1+m}}{d e (1+m) \sqrt {\cos ^2(c+d x)}}+\frac {b \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};\sin ^2(c+d x)\right ) (e \sin (c+d x))^{1+m}}{d e (1+m)}\\ \end {align*}

________________________________________________________________________________________

Mathematica [A]
time = 0.07, size = 98, normalized size = 0.82 \begin {gather*} \frac {\left (a \sqrt {\cos ^2(c+d x)} \, _2F_1\left (\frac {1}{2},\frac {1+m}{2};\frac {3+m}{2};\sin ^2(c+d x)\right )+b \cos (c+d x) \, _2F_1\left (1,\frac {1+m}{2};\frac {3+m}{2};\sin ^2(c+d x)\right )\right ) (e \sin (c+d x))^m \tan (c+d x)}{d (1+m)} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(a + b*Sec[c + d*x])*(e*Sin[c + d*x])^m,x]

[Out]

((a*Sqrt[Cos[c + d*x]^2]*Hypergeometric2F1[1/2, (1 + m)/2, (3 + m)/2, Sin[c + d*x]^2] + b*Cos[c + d*x]*Hyperge
ometric2F1[1, (1 + m)/2, (3 + m)/2, Sin[c + d*x]^2])*(e*Sin[c + d*x])^m*Tan[c + d*x])/(d*(1 + m))

________________________________________________________________________________________

Maple [F]
time = 0.10, size = 0, normalized size = 0.00 \[\int \left (a +b \sec \left (d x +c \right )\right ) \left (e \sin \left (d x +c \right )\right )^{m}\, dx\]

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((a+b*sec(d*x+c))*(e*sin(d*x+c))^m,x)

[Out]

int((a+b*sec(d*x+c))*(e*sin(d*x+c))^m,x)

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))*(e*sin(d*x+c))^m,x, algorithm="maxima")

[Out]

integrate((b*sec(d*x + c) + a)*(e*sin(d*x + c))^m, x)

________________________________________________________________________________________

Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))*(e*sin(d*x+c))^m,x, algorithm="fricas")

[Out]

integral((b*sec(d*x + c) + a)*(e*sin(d*x + c))^m, x)

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \left (e \sin {\left (c + d x \right )}\right )^{m} \left (a + b \sec {\left (c + d x \right )}\right )\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))*(e*sin(d*x+c))**m,x)

[Out]

Integral((e*sin(c + d*x))**m*(a + b*sec(c + d*x)), x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((a+b*sec(d*x+c))*(e*sin(d*x+c))^m,x, algorithm="giac")

[Out]

integrate((b*sec(d*x + c) + a)*(e*sin(d*x + c))^m, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (e\,\sin \left (c+d\,x\right )\right )}^m\,\left (a+\frac {b}{\cos \left (c+d\,x\right )}\right ) \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((e*sin(c + d*x))^m*(a + b/cos(c + d*x)),x)

[Out]

int((e*sin(c + d*x))^m*(a + b/cos(c + d*x)), x)

________________________________________________________________________________________